//
//  RXEvent.h
//  iMed
//
//  Created by Barry Press on 8/14/09.
//  Copyright 2009 Barry Press. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RX.h"

@class DataSet;

@interface RXEvent : NSObject <NSCoding> {
	NSDate	*timestamp;			// When it should happen. 
	NSTimeInterval interval;	// How long until it happens, update on a timer
	RX		*rx;				// What should happen
	float	rxcount;			// How many to take
	float	dose;				// Modifier of the RX dose
	int		dayCount;			// How many events this day
}

- (void)populateRXEventUsingDataSet:(DataSet*)ds;
- (NSTimeInterval)updateInterval;

- (void)textOutputEventToView:(NSView*)view;

@property (readwrite, retain) NSDate *timestamp;
@property (readwrite, retain) RX *rx;
@property (readwrite) float rxcount;
@property (readwrite) float dose;
@property (readwrite) NSTimeInterval interval;
@property (readwrite) int dayCount;

@end
